package fun.yao.common.db;

/**
 * @Author: longjinglai
 * @Date: 2019-01-23 11:34
 */
public class ConnProperties {

    public ConnProperties(){

    }

    public ConnProperties(String dataSourceName){
        this.dataSourceName = dataSourceName;
    }


    private String dataSourceName = "Curr";

    private int poolSize = 5;

    private String dbDriver = "oracle.jdbc.driver.OracleDriver";

    private String dbUrl = "";

    private String dbUserName = "";

    private String dbPwd = "";

    private String testSql = "select * from dual";

    private int sqlTestInvTime = 60;

    private int connOverTime = 4*60*60;

    private int getWaiteTime = 2*60;


    public String getDataSourceName() {
        return dataSourceName;
    }

    public void setDataSourceName(String dataSourceName) {
        this.dataSourceName = dataSourceName;
    }

    public int getPoolSize() {
        return poolSize;
    }

    public void setPoolSize(int poolSize) {
        this.poolSize = poolSize;
    }

    public String getDbDriver() {
        return dbDriver;
    }

    public void setDbDriver(String dbDriver) {
        this.dbDriver = dbDriver;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public String getDbUserName() {
        return dbUserName;
    }

    public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
    }

    public String getDbPwd() {
        return dbPwd;
    }

    public void setDbPwd(String dbPwd) {
        this.dbPwd = dbPwd;
    }

    public String getTestSql() {
        return testSql;
    }

    public void setTestSql(String testSql) {
        this.testSql = testSql;
    }

    public int getSqlTestInvTime() {
        return sqlTestInvTime;
    }

    public void setSqlTestInvTime(int sqlTestInvTime) {
        this.sqlTestInvTime = sqlTestInvTime;
    }

    public int getConnOverTime() {
        return connOverTime;
    }

    public void setConnOverTime(int connOverTime) {
        this.connOverTime = connOverTime;
    }

    public int getGetWaiteTime() {
        return getWaiteTime;
    }

    public void setGetWaiteTime(int getWaiteTime) {
        this.getWaiteTime = getWaiteTime;
    }
}
